package com.tenbent.product.base.redis;

import com.tenbent.product.base.cache.BaseCacheService;

import java.util.List;
import java.util.Set;

/**
 * Created by ThinkPad on 2017/9/15.
 */
public interface RedisCacheService extends BaseCacheService {

	boolean set(final String key, Object value);

	boolean set(final String key, Object value, Long expireTime);

	void remove(final String... keys);

	void removePattern(final String pattern);

	void remove(final String key);

	boolean exists(final String key);

	Object get(final String key);

	void hmSet(String key, Object hashKey, Object value);

	Object hmGet(String key, Object hashKey);

	void lPush(String k, Object v);

	List<?> lRange(String k, long l, long l1);

	void add(String key, Object value);

	Set<?> setMembers(String key);

	void zAdd(String key, Object value, double scoure);

	Set<?> rangeByScore(String key, double scoure, double scoure1);
}
